package com.hyst.repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.hyst.domain.Student;
import com.hyst.domain.StudentView;

import tk.mybatis.mapper.common.Mapper;

public interface StudentMapper extends Mapper<Student> {
	List<StudentView> getTryListenStudent();

	List<StudentView> getFreeListen(List<String> ids);

	List<StudentView> getFreeListen2();

	List<StudentView> getFreeListen3(String studentId);

	List<Map> getSelect2Data();

	List<Map> getSelect3Data();

	List<Map> getSelect4Data(String key);


	List<StudentView> getListByCondition(StudentView student);
	
	List<StudentView> getListFuzerenId(StudentView student);
	
	int saveAllotData(StudentView student);
	
	int saveRemarkData(StudentView student);
	
	int savestateEditData(StudentView student);
	
	int savedoDeleteData(StudentView student);

	StudentView getStuInfo(String studentId);
	
	Student getByPhone(String phone);

	void saveDelete(String studentId);

	void deleteStudent(String studentId);

	void deletePeriod(String studentid);

	Student getById(String studentId);

	BigDecimal getSumMoney(String studentId);


	Map getStudentInfo(String studentId);

	String getHeadImgUrl(String mobile);

	List<StudentView> getAll();

	Integer getCountWeChatApp(String mobile);

	Integer getCountWeChatMp(String mobile);

	Map getRecommend(String studentId);
}
